package com.zx.viewlearn.activity;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;

import com.zx.viewlearn.R;
import com.zx.viewlearn.views.MyView3;

/**
 * Scroller 使用
 */
public class ViewLearnActivity3Scroller extends AppCompatActivity {
    MyView3 myView2;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_view_learn3);
        myView2 = findViewById(R.id.myView2);
    }

    public void moveView(View view) {
        myView2.smoothScrollTo(-400, -200);
    }
}
